@import "mixin";
body {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  line-height: 1.2;
  text-rendering: optimizeLegibility;
  //font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  //font-family: "Monospaced Number","Chinese Quote",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Helvetica Neue",Helvetica,Arial,sans-serif;
  //font-family: "Segoe UI","Segoe",Tahoma,Helvetica,Arial,sans-serif;
  font-family: "BMW Group Condensed", Arial;
  font-size: 14px;
  overflow: hidden;
}

html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
  padding: 0;
  margin: 0;
}

.no-padding {
  padding: 0 !important;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.text-center {
  text-align: center;
}

.fr {
  float: right;
}

.fl {
  float: left;
}
.border-box {
  box-sizing: border-box;
}
.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.required {
  position: relative;
}
.required::before {
  position: absolute;
  left: -8px;
  content: "*";
  color: #f56c6c;
  margin-right: 4px;
}

code {
  background: #eef1f6;
  padding: 15px 10px;
  margin-bottom: 20px;
  display: block;
  line-height: 36px;
  a {
    color: #337ab7;
    cursor: pointer;
    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

.fade-enter-active,
.fade-leave-active {
  transition: all 0.2s ease;
}

.fade-enter,
.fade-leave-active {
  opacity: 0;
}

.icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(
    90deg,
    rgba(32, 182, 249, 1) 0%,
    rgba(32, 182, 249, 1) 0%,
    rgba(33, 120, 241, 1) 100%,
    rgba(33, 120, 241, 1) 100%
  );
  .subtitle {
    font-size: 20px;
    color: #fff;
  }
  &.draft {
    background: #d0d0d0;
  }
  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;
  &:hover {
    color: rgb(32, 160, 255);
  }
}

.input-label {
  font-size: 14px;
  color: #48576a;
  line-height: 1;
  padding: 11px 5px 11px 0;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

.no-marginLeft {
  .el-checkbox {
    margin: 0 20px 15px 0;
  }
  .el-checkbox + .el-checkbox {
    margin-left: 0px;
  }
}

.filter-container {
  .el-form-item {
    margin-bottom: 10px !important;
  }
  padding-bottom: 10px;
  .filter-item {
    display: inline-block;
    vertical-align: middle;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

//refine simplemde
.simplemde-container {
  .editor-toolbar.fullscreen,
  .CodeMirror-fullscreen {
    z-index: 1003;
  }
}

//暂时性解决diolag 问题 https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

//github-corner
.github-corner:hover .octo-arm {
  animation: octocat-wave 560ms ease-in-out;
}

@keyframes octocat-wave {
  0%,
  100% {
    transform: rotate(0);
  }
  20%,
  60% {
    transform: rotate(-25deg);
  }
  40%,
  80% {
    transform: rotate(10deg);
  }
}

@media (max-width: 500px) {
  .github-corner:hover .octo-arm {
    animation: none;
  }
  .github-corner .octo-arm {
    animation: octocat-wave 560ms ease-in-out;
  }
}

//mint-ui 重写样式
.mint-msgbox-input {
  input {
    height: 80px;
  }
}

.mint-msgbox-confirm {
  color: #c5d0d5;
}

.app-container {
  .el-card {
    overflow: visible;
  }
}

/*   ***自定义全局样式***   */
// 详情弹出框样式
.el-dialog.defaultDialog,
.el-dialog.detail {
  padding-top: 20px;
  background-color: #f2f2f2;
}
.el-dialog.defaultDialog .el-dialog__header,
.el-dialog.detail .el-dialog__header {
  margin: 0 10px 20px 10px;
  padding: 0;
  box-sizing: border-box;
  height: 50px;
  line-height: 50px;
  border: 1px solid #9a9a9a;
  background-color: #e4e4e4;
  text-indent: 10px;
}
.el-dialog.defaultDialog .el-dialog__title,
.el-dialog.detail .el-dialog__title {
  font-size: 20px;
  font-weight: 900;
}
.el-dialog.defaultDialog .el-dialog__headerbtn,
.el-dialog.detail .el-dialog__headerbtn {
  top: 35px;
}
.el-dialog.defaultDialog .el-dialog__close,
.el-dialog.detail .el-dialog__close {
  color: #ff0000;
  font-size: 18px;
  font-weight: 900;
}
.el-dialog.defaultDialog .el-dialog__body,
.el-dialog.detail .el-dialog__body {
  padding: 0 15px 30px;
}
// 超级搜索框样式
.queryBoxLine {
  position: relative;
  height: 1px;
  margin: 24px 0;
  background-color: #d1d1d1;
  div {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    -webkit-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    -ms-transform: translateX(-50%) translateY(-50%);
    -o-transform: translateX(-50%) translateY(-50%);
    background-color: #fff;
    padding: 0 20px;
    &:hover {
      cursor: pointer;
    }
  }
}

.limitNotify .el-notification__content {
  text-align: left;
  word-break: break-word;
}

// 折行
.break-words {
  white-space: normal;
  word-wrap: break-word;
  word-break: break-all;
}

.collapse {
  width: 56px;
  height: 68px;
  padding: 5px 10px;
  box-sizing: border-box;
  line-height: 60px;
  cursor: pointer;
  i {
    font-size: 22px;
  }
}
